package com.project.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
@ApiModel(value = "RoleUser",description = "用户角色")
public class Permission implements Serializable,Cloneable {
    /**
     * 权限ID
     */
    @ApiModelProperty(value = "权限ID",example = "1")
    private Integer id;
    /**
     * 权限等级
     */
    @ApiModelProperty(value = "权限等级",example = "1")
    private Integer pid;
    /**
     * 权限代码
     */
    @ApiModelProperty(value = "权限代码",example = "1")
    private String percode;
    /**
     * 权限类型
     */
    @ApiModelProperty(value = "权限类型",example = "1")
    private String type;
    /**
     * 权限名称
     */
    @ApiModelProperty(value = "权限名称",example = "管理员")
    private String name;
    /**
     * 图标
     */
    @ApiModelProperty(value = "图标",example = "1")
    private String icon;
    /**
     * 访问路劲
     */
    @ApiModelProperty(value = "访问路劲",example = "/user")
    private String href;
    /**
     * 权限状态
     */
    @ApiModelProperty(value = "权限状态",example = "0:启用，1：禁用")
    private Integer open;

    private List<Permission> children;
}
